package com.example.prjbackend.service;

import com.example.prjbackend.domain.Yuanggong;
import com.example.prjbackend.domain.YuanggongDetail;
import com.example.prjbackend.domain.YuangongQueryParam;
import com.example.prjbackend.mapper.YuangongMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class YuangongService
{
    @Autowired
    YuangongMapper yuangongMapper;

    public List<YuanggongDetail> list(YuangongQueryParam param) {
        return yuangongMapper.list(param);
    }
    public int add(Yuanggong yuanggong) {
        return yuangongMapper.add(yuanggong);
    }

    public int edit(Yuanggong yuanggong) {
        return yuangongMapper.edit(yuanggong);
    }

    public int delete(Long[] ids) {
        return yuangongMapper.delete(ids);
    }
}
